var express = require('express');
var router = express.Router();
var rateModel = require('../../models/user/rate');

router.post('/', function (req, res, next) {
    var params = req.body
    rateModel.create({
        openid: params.openid,
        value: params.value,
        text: params.text
    }, function (err, docs) {
        if (!err) { res.json({ data: null, msg: '添加成功！', code: 200 }) }
    })
})

module.exports = router;
